<?php 
/* SVN FILE: $Id$ */
/* EventUser Test cases generated on: 2009-04-24 22:04:17 : 1240611137*/
App::import('Model', 'EventUser');

class EventUserTestCase extends CakeTestCase {
	var $EventUser = null;
	var $fixtures = array('app.event_user', 'app.user', 'app.event');

	function startTest() {
		$this->EventUser =& ClassRegistry::init('EventUser');
	}

	function testEventUserInstance() {
		$this->assertTrue(is_a($this->EventUser, 'EventUser'));
	}

	function testEventUserFind() {
		$this->EventUser->recursive = -1;
		$results = $this->EventUser->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('EventUser' => array(
			'id'  => 'Lorem ipsum dolor sit amet',
			'user_id'  => 'Lorem ipsum dolor sit amet',
			'event_id'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-04-24 22:12:17',
			'modified'  => '2009-04-24 22:12:17'
		));
		$this->assertEqual($results, $expected);
	}
}
?>